echo "Harbor12345" | docker login -u admin --password-stdin 172.24.73.32:443

repository="172.24.73.32:443/iot/zhm-ai"

tag="v1.0.2"

image="${repository}:${tag}"

docker build -t ${image} ..

docker push ${image}

kubectl create secret docker-registry regcred-sit \
  --docker-server=172.24.73.32:443 \
  --docker-username=admin \
  --docker-password=Harbor12345 \
  --namespace=szhems

kubectl apply -f deployment.yaml
